package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.ReturnList;
import com.atguigu.jxc.entity.ReturnListGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: ReturnListGoodsDao
 * Description:
 * Date: 2022/1/17 18:23
 *
 * @version:
 * @since JDK 1.8
 */
@Repository
public interface ReturnListGoodsDao {


    ReturnList selectByReturnNumber(@Param("returnNumber")String returnNumber);

    void saveReturnListGoods(@Param("returnListGoods")ReturnListGoods returnListGoods);

    void saveReturnList(@Param("returnList")ReturnList returnList);

    List<ReturnList> getReturnListGoods(@Param("returnNumber") String returnNumber, @Param("supplierId")Integer supplierId, @Param("state")Integer state,@Param("sTime") String sTime,@Param("eTime") String eTime);

    List<ReturnListGoods> getGoodsList(@Param("returnListId") Integer returnListId);

    void deleteReturnList(@Param("returnListId") Integer returnListId);

    void deleteReturnListGoods(@Param("returnListId") Integer returnListId);

    List<Integer> getGoodsList1(@Param("goodsTypeId")Integer goodsTypeId,@Param("codeOrName") String codeOrName);
}
